Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,31 @@ public async Task<T> Find(string id)

public T Find(params object[] keyValues)
{
// Should not implement synchronous methods when using service fabric programming model
throw new NotImplementedException();
}

public void UpsertGraph(T entity)
{
// Should not implement synchronous methods when using service fabric programming model
throw new NotImplementedException();
}

public IQueryFluent<T> Query(ExpressionSpecification<T> specification)
{
// Should not implement synchronous methods when using service fabric programming model
throw new NotImplementedException();
}

public IQueryFluent<T> Query()
{
// Should not implement synchronous methods when using service fabric programming model
throw new NotImplementedException();
}

public IQueryable<T> Queryable()
{
// Should not implement synchronous methods when using service fabric programming model
throw new NotImplementedException();
}

Expand Down Expand Up @@ -99,9 +104,8 @@ public async Task Update(string id, T entity)

public void Update(T entity)
{
var id = entity.Id;

Task.Run(() => Update(id, entity));
// Should not implement synchronous methods when using service fabric programming model
throw new NotImplementedException();
}

#endregion
Expand All @@ -119,7 +123,8 @@ public async Task<T> Add(T entity)

void IRepository<T>.Add(T entity)
{
Task.Run(() => Add(entity));
// Should not implement synchronous methods when using service fabric programming model
throw new NotImplementedException();
}

#endregion
Expand All @@ -128,6 +133,7 @@ void IRepository<T>.Add(T entity)

public IRepository<T1> GetRepository<T1>() where T1 : class, ITrackable
{
// Should not implement synchronous methods when using service fabric programming model
throw new NotImplementedException();
}

Expand All @@ -143,11 +149,13 @@ public Task Delete(T entity)

void IRepository<T>.Delete(T entity)
{
Task.Run(() => Delete(entity));
// Should not implement synchronous methods when using service fabric programming model
throw new NotImplementedException();
}

public void Delete(params object[] keyValues)
{
// Should not implement synchronous methods when using service fabric programming model
throw new NotImplementedException();
}

Expand Down