/// <summary>Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, FrontendBase serviceImpl) { serviceBinder.AddMethod(__Method_CreateTicket, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::OpenMatch.CreateTicketRequest, global::OpenMatch.CreateTicketResponse>(serviceImpl.CreateTicket)); serviceBinder.AddMethod(__Method_DeleteTicket, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::OpenMatch.DeleteTicketRequest, global::OpenMatch.DeleteTicketResponse>(serviceImpl.DeleteTicket)); serviceBinder.AddMethod(__Method_GetTicket, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::OpenMatch.GetTicketRequest, global::OpenMatch.Ticket>(serviceImpl.GetTicket)); serviceBinder.AddMethod(__Method_GetAssignments, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::OpenMatch.GetAssignmentsRequest, global::OpenMatch.GetAssignmentsResponse>(serviceImpl.GetAssignments)); }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(FrontendBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreatePlayer, serviceImpl.CreatePlayer) .AddMethod(__Method_DeletePlayer, serviceImpl.DeletePlayer) .AddMethod(__Method_GetUpdates, serviceImpl.GetUpdates).Build()); }
public Table(FrontendBase frontendBase, byte[] chunkID, string name) : base(frontendBase, chunkID) { if (name == null) throw new ArgumentNullException ("name"); this.name = name; }
/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(FrontendBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateTicket, serviceImpl.CreateTicket) .AddMethod(__Method_DeleteTicket, serviceImpl.DeleteTicket) .AddMethod(__Method_GetTicket, serviceImpl.GetTicket) .AddMethod(__Method_GetAssignments, serviceImpl.GetAssignments).Build()); }
public static BaseMetaObject Deserialize(FrontendBase fb, byte[] chunkID, byte[] buffer) { using (System.IO.MemoryStream MS = new System.IO.MemoryStream (buffer)) { using (System.IO.BinaryReader BR = new System.IO.BinaryReader (MS)) { return new Table (fb, chunkID, BR.ReadString ()); } } }
protected BaseMetaObject(FrontendBase frontendBase, byte[] chunkID) { if (frontendBase == null) throw new ArgumentNullException ("frontendBase"); // if (chunkID == null) // throw new ArgumentNullException ("chunkID"); this.frontendBase = frontendBase; this.chunkID = chunkID; }
/// <summary>Register service method implementations with a service binder. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary> /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static void BindService(grpc::ServiceBinderBase serviceBinder, FrontendBase serviceImpl) { serviceBinder.AddMethod(__Method_CreatePlayer, serviceImpl.CreatePlayer); serviceBinder.AddMethod(__Method_DeletePlayer, serviceImpl.DeletePlayer); serviceBinder.AddMethod(__Method_GetUpdates, serviceImpl.GetUpdates); }
public void AddFrontend(FrontendBase f) { Log.WriteLine ("Database.AddFrontend()"); if (f == null) throw new ArgumentNullException ("f"); this.frontends.Add (f.Name, f); }
public BaseMetaObject Deserialize(FrontendBase fb, byte[] chunkID, byte[] buffer) { if (fb == null) throw new ArgumentNullException ("fb"); // if (chunkID == null) // throw new ArgumentNullException ("chunkID"); if (buffer == null) throw new ArgumentNullException ("buffer"); if (deserialize == null) { ResolveMethod (); } return (BaseMetaObject)deserialize.Invoke (null, new object[] { fb, chunkID, buffer }); }
protected DataContext(FrontendBase frontendBase) { if (frontendBase == null) throw new ArgumentNullException ("frontendBase"); this.frontend = frontendBase; }